<?php
/**
 * EventFixture
 *
 */
class EventFixture extends CakeTestFixture {

/**
 * Fields
 *
 * @var array
 */
	public $fields = array(
		'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary'),
		'name' => array('type' => 'string', 'null' => false, 'default' => NULL, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'ecategory_id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'index'),
		'start_date' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
		'end_date' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
		'place_id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'index'),
		'user_id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'index', 'comment' => 'propietario del evento'),
		'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'fk_events_places1' => array('column' => 'place_id', 'unique' => 0), 'fk_events_ecategories1' => array('column' => 'ecategory_id', 'unique' => 0), 'fk_events_users1' => array('column' => 'user_id', 'unique' => 0)),
		'tableParameters' => array('charset' => 'latin1', 'collate' => 'latin1_swedish_ci', 'engine' => 'InnoDB')
	);

/**
 * Records
 *
 * @var array
 */
	public $records = array(
		array(
			'id' => 1,
			'name' => 'Lorem ipsum dolor sit amet',
			'ecategory_id' => 1,
			'start_date' => '2012-06-06 01:27:49',
			'end_date' => '2012-06-06 01:27:49',
			'place_id' => 1,
			'user_id' => 1
		),
	);
}
